package com.jiayou.Map;

import com.jiayou.Tank.Model;
import com.jiayou.Tank.Tank1;

import java.awt.*;
import java.util.List;


public abstract class Body {
    public int x;
    public int y;
    int width;
    int heigh;

    Body(int x, int y, int width, int heigh) {
        this.x = x;
        this.y = y;
        this.width = width;
        this.heigh = heigh;
    }

    public Rectangle rec()
    {
        return new Rectangle(x,y,width,heigh);
    }

    abstract   public void draw(Graphics graphics, Tank1 tank1);
    abstract   public void drawdiren(List<Model> list);

}
